<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>大奔农庄</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>  
</head>
<body>
	<div>
		<ul class="xxdt-ul ">
			<li class="aui-text-success">
				<img src="../../image/active-xx.png" class="xxdt-img">查看信息
			</li>
			<li onclick="openArtinfo(3,'信息发布');">
				<img src="../../image/xx.png" class="xxdt-img">我要发布
			</li>
			<a class="aui-clearfix"></a>
		</ul>
	</div>

	<div class="aui-content">
	    <ul class="aui-list aui-list-in border-none">
	        <li class="aui-list-item aui-list-item-middle ">
	            <div class="aui-list-item-inner">
	                <div class="aui-list-item-title yingyu-se3">供求信息大厅</div>
	            </div>
	        </li>
        </ul>
	</div>
	<section class="aui-content xxdt-box">
	    <div class="aui-row" id="xinxiList">
	    <!--
	        <div class="aui-xs-6" onclick="openXinxiinfo();">
	            <big class="aui-text-warning"><img src="../../image/s-1.jpg"></big>
	            <div class="aui-gird-lable aui-font-size-14">融诺网专业团队辅助</div>
	            <div class="aui-font-size-12 ">融诺网专业团队辅助陕西省光热项目成功融资3000</div>
	        </div>
	    -->
	    </div>
	</section>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/aui-scroll.js"></script>
<script>
var db_key = 'user',db_user,useParam={},nowpage=1, loadend=false, isloading=false;
//初始化    
apiready = function() {
    //加载列表
    loadlist(1);
}
//监听滚动高度，加载下一页	
var scroll = new auiScroll({
    listen:true, //是否监听滚动高度，开启后将实时返回滚动高度
    distance:10 //判断到达底部的距离，isToBottom为true
},function(ret){
    if (ret.isToBottom) {
        loadlist();//显示更多数据
    }
});
//加载内容列表
function loadlist() {
	if (loadend) {/*api.toast({msg:'1'});*/return;}
    //禁止重复加载
    if (isloading) {/*api.toast({msg:'2'});*/return;}
    else isloading = true;
    api.showProgress();//显示加载进度框
    $api.removeCls($api.byId("cd_loading"),'none');//显示加载中

    useParam.page = nowpage;
	useParam.rtk = RSapi.myrtk;		

	api.ajax({
		url: RSapi.base+RSapi.xinxiList,
		method: 'post',
		cache: false,
		timeout: 30,
		dataType: 'json',
		data: { values: useParam },
	}, function(ret, err){
		if(err){
			//api.toast({msg: JSON.stringify(err)});
			api.alert({msg: err.msg});
		}else {
			if (ret.status==1) { 
				//成功了
				nowpage++;//页数加一
				$api.append($api.byId('xinxiList'),ret.info);	
//				$api.addCls($api.byId('wudongtai_box'), 'none');//显示无动态框		
				api.parseTapmode();
				eval('status_'+status+'=true;');
			}else if(ret.status==2){
				//没有内容
				$api.html($api.byId('xinxiList'),'');
				loadend = true;
//				$api.removeCls($api.byId('wudongtai_box'), 'none');//显示无动态框
//				$api.html($api.byId('wudongtai_txt'), ret.info);//显示提示内容
			}else if(ret.status==3){
				//成功了, 但是已经加载完毕
                loadend = true;
                api.toast({msg:ret.info});
			}else {
				//失败了
				api.toast({msg: ret.info});
			}
		}
//		$api.addCls($api.byId("cd_loading"),'none');//隐藏加载中
		isloading = false;//加载结束
	});
	api.hideProgress();
}
//打开信息详情
function openArtinfo(id,title){
    api.openWin({
	        name: 'win_artinfo',
	        url: '../win/artinfo_win.html',
	        pageParam: {artid: id,pagetitle:title}
        });
}   
</script>
</html>